﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011D7 RID: 4567
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SpAddSource : IMessage<SpAddSource>, IMessage, IEquatable<SpAddSource>, IDeepCloneable<SpAddSource>, IBufferMessage
	{
		// Token: 0x170039D0 RID: 14800
		// (get) Token: 0x0600CC80 RID: 52352 RVA: 0x00226FF0 File Offset: 0x002251F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SpAddSource> Parser
		{
			get
			{
				return SpAddSource._parser;
			}
		}

		// Token: 0x170039D1 RID: 14801
		// (get) Token: 0x0600CC81 RID: 52353 RVA: 0x00226FF7 File Offset: 0x002251F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SpAddSourceReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170039D2 RID: 14802
		// (get) Token: 0x0600CC82 RID: 52354 RVA: 0x00227009 File Offset: 0x00225209
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SpAddSource.Descriptor;
			}
		}

		// Token: 0x0600CC83 RID: 52355 RVA: 0x00227010 File Offset: 0x00225210
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpAddSource()
		{
		}

		// Token: 0x0600CC84 RID: 52356 RVA: 0x00227023 File Offset: 0x00225223
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpAddSource(SpAddSource other) : this()
		{
			this.source_ = other.source_;
			this.spAdd_ = other.spAdd_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CC85 RID: 52357 RVA: 0x00227054 File Offset: 0x00225254
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpAddSource Clone()
		{
			return new SpAddSource(this);
		}

		// Token: 0x170039D3 RID: 14803
		// (get) Token: 0x0600CC86 RID: 52358 RVA: 0x0022705C File Offset: 0x0022525C
		// (set) Token: 0x0600CC87 RID: 52359 RVA: 0x00227064 File Offset: 0x00225264
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Source
		{
			get
			{
				return this.source_;
			}
			set
			{
				this.source_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x170039D4 RID: 14804
		// (get) Token: 0x0600CC88 RID: 52360 RVA: 0x00227077 File Offset: 0x00225277
		// (set) Token: 0x0600CC89 RID: 52361 RVA: 0x0022707F File Offset: 0x0022527F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SpAdd
		{
			get
			{
				return this.spAdd_;
			}
			set
			{
				this.spAdd_ = value;
			}
		}

		// Token: 0x0600CC8A RID: 52362 RVA: 0x00227088 File Offset: 0x00225288
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SpAddSource);
		}

		// Token: 0x0600CC8B RID: 52363 RVA: 0x00227098 File Offset: 0x00225298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SpAddSource other)
		{
			return other != null && (other == this || (!(this.Source != other.Source) && this.SpAdd == other.SpAdd && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CC8C RID: 52364 RVA: 0x002270E8 File Offset: 0x002252E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Source.Length != 0)
			{
				num ^= this.Source.GetHashCode();
			}
			if (this.SpAdd != 0U)
			{
				num ^= this.SpAdd.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CC8D RID: 52365 RVA: 0x00227142 File Offset: 0x00225342
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CC8E RID: 52366 RVA: 0x0022714A File Offset: 0x0022534A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CC8F RID: 52367 RVA: 0x00227154 File Offset: 0x00225354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Source.Length != 0)
			{
				output.WriteRawTag(10);
				output.WriteString(this.Source);
			}
			if (this.SpAdd != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.SpAdd);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CC90 RID: 52368 RVA: 0x002271B4 File Offset: 0x002253B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Source.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Source);
			}
			if (this.SpAdd != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SpAdd);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CC91 RID: 52369 RVA: 0x00227210 File Offset: 0x00225410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SpAddSource other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Source.Length != 0)
			{
				this.Source = other.Source;
			}
			if (other.SpAdd != 0U)
			{
				this.SpAdd = other.SpAdd;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CC92 RID: 52370 RVA: 0x00227265 File Offset: 0x00225465
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CC93 RID: 52371 RVA: 0x00227270 File Offset: 0x00225470
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 16U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.SpAdd = input.ReadUInt32();
					}
				}
				else
				{
					this.Source = input.ReadString();
				}
			}
		}

		// Token: 0x04005214 RID: 21012
		private static readonly MessageParser<SpAddSource> _parser = new MessageParser<SpAddSource>(() => new SpAddSource());

		// Token: 0x04005215 RID: 21013
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005216 RID: 21014
		public const int SourceFieldNumber = 1;

		// Token: 0x04005217 RID: 21015
		private string source_ = "";

		// Token: 0x04005218 RID: 21016
		public const int SpAddFieldNumber = 2;

		// Token: 0x04005219 RID: 21017
		private uint spAdd_;
	}
}
